import request from '@/utils/request'

// 查询岗位列表
export function listMedicineFactory(query) {
  return request({
    url: '/medicine/factory/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function getMedicineFactory(fatoryId) {
  return request({
    url: '/medicine/factory/' + fatoryId,
    method: 'get'
  })
}

// 新增岗位
export function addMedicineFactory(data) {
  return request({
    url: '/medicine/factory/',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updateMedicineFactory(data) {
  return request({
    url: '/medicine/factory/',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delMedicineFactory(fatoryId) {
  return request({
    url: '/medicine/factory/' + fatoryId,
    method: 'delete'
  })
}
